# f = open("1.txt", mode='r', encoding="UTF-8")
# print(f.readlines())
# f.close()
from io import TextIOWrapper

# f = open("1.txt", mode='a', encoding="UTF-8")
# f.write("aaa")
# print(f.readlines())
# f.close()
f = TextIOWrapper
try:
    with open("1.txt", mode='a', encoding="UTF-8") as a:
        a.write("sss")
    f = open("1.txt", mode='r', encoding="UTF-8")
    print(type(f))
    # f = open("1.txt", mode='r', encoding="UTF-8")
except Exception as e:
    print("异常")
else:
    print(f.readlines())
    f.close()
finally:
    print("关闭")




